package cn.tedu.design;

/*
Author     :Dsi
Date       : 2021/11/22 16:08
Description: 
*/
public class demo1 {

}
class Cat{
    private Cat(){}
    private static Cat c;
    public static Cat getC (){
        if(c==null){c=new Cat();}
        return c;
    }
}